xplane-control-webos: xplane-control-webos.c slider.c button.c xplane.c text.c
	/opt/PalmPDK/arm-gcc/bin/arm-none-linux-gnueabi-gcc \
	-o xplane-control-webos \
	xplane-control-webos.c slider.c button.c xplane.c text.c SDL_rotozoom.c \
	"-I/opt/PalmPDK/include" \
	"-I/opt/PalmPDK/include/SDL" \
	"-L/opt/PalmPDK/device/lib" \
	-Wl,--allow-shlib-undefined \
	-lSDL -lGLESv2 -lSDL_ttf -lpdl

install: xplane-control-webos 
	pdk-package ./ 
	pdk-install name.aaronschulman.xplanecontrolwebos_1.0.0_all.ipk
	pdk-launch -c name.aaronschulman.xplanecontrolwebos
	pdk-launch name.aaronschulman.xplanecontrolwebos

clean:
	rm -rf xplane-control-webos *.ipk
